import { IsNotEmpty, IsNumber, IsNumberString, IsOptional } from "class-validator";

export class askQuestionDto {
    
  //todo
  /**群组id */
  // @IsOptional()
  // group_id :number

 /**对话id */
  @IsOptional()
  conversation_id ?:string
  
  /** 问题文本 */
  @IsNotEmpty()
  question :string 

} 

export class changeGroupNameDto {
  @IsNotEmpty()
  group_id :number
  @IsNotEmpty()
  title :string
}

export class saveMessageDto{
   @IsNotEmpty()
   group_id :number
   @IsNotEmpty()
   answer :string
   @IsNotEmpty()
   question :string
   @IsNotEmpty()
   createdDate :Date
}